<?php
include('session.inc');
require_once('funct.inc');
include 'color_style.php';
include LANGUAGE;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <?php echo '<meta http-equiv="Content-Type" content="text/html; charset='._CHARSET_.';">'; ?>
    <title>Header</title>
    <style  type="text/css">
        table{
            border-bottom-color: black;
            border-top-color: black;
            border-left-color: black;
            border-right-color: black;
            border-collapse: collapse;
            font-size: 12px;
        }
        form {margin-top:0pt; margin-bottom:0px;}
        img {margin-top:0pt; margin-bottom:0px;}
        body{
            margin-left:10pt;
            margin-right:0pt;
            margin-top:0pt;
            margin-bottom:0pt;
            height: 150px;
            font-family:  Verdana;
            font-size: 14px;
            background-position: 100px 30px;
            background-repeat:no-repeat;
        }
        input {
            border: 1px solid black;
            cursor: pointer;
            background-color: white;
            font-size: 10px;
            margin-left: 0px;
            padding-left: 0px;
            list-style-type: none;
            font-family:  Verdana;
        }
        * { margin:0; padding:0; color:#444444; font-weight:bold; font-size: 10px; }
        ul#menu a { display:block; }
        ul#menu { list-style-type:none; }
        ul#menu li { display:block; float:left; }
        ul#menu li a { padding:0.05em 1em 0.25em 0.5em; border:1px solid #cccccc; background:#efefef; text-decoration:none; }
        ul#menu li a:hover { background:#f4f4f4; }
        ul#menu li ul { display:none; }
        ul#menu li ul li { display:block; float:none; border:1px solid #cccccc; }
        ul#menu li ul li a { border:0; background:#efefef; }
        ul#menu li ul li a:hover { color:#ffffff; background:#003366; }
        /* zahrnutie a vyuzitie komponentu hover.htc */
        li { behavior:url('hover.htc'); }
        ul#menu li:hover ul, ul#menu li.hover ul { display:block; position:absolute; }

    </style>
</head>

<?php print "<body bgcolor=\"".BACKGROUND_COLOR_HEADER."\" background=\"navrh3admin.png\">";
       if(!GetAdminID($ID)){echo LOGIN_ERR;exit;}
	
       print "<img src=\"dslogo.jpg\" align=\"top\" style=\"position:absolute;left:0px;top:0px;\" alt=\"Open Win Shop\" />";
       print '
            <a href="home_screen.php" target="place" style=" text-align: center; color:#9C8A88; position:absolute; left:10px; top:50px;">
                
                <img src="img/home_screen/home.png" border="0" alt="'.HS_HOME_SCREEN.'" />
                <br />
                <b><font style="color:#9C8A88;">'.HS_HOME_SCREEN.'</font></b>
                
            </a>
       ';
	   //print "<img src=\"navrh3admin.jpg\" align=\"top\" style=\"position:absolute;left:470px;top:20px;\" />";

		print "<ul id='menu' style=\"position:absolute;left:150px;top:0px;\">";
		
			print "<li><a>".H_TOVAR."</a>";
			print "<ul>";
				print "<li><a href='adm_product.php' target='place'>".H_TOVAR."</a></li>";
				if(file_exists('modules/categorie_creator/categorie_creator.php'))
					print "<li><a href='modules/categorie_creator/categorie_creator.php' target='place'>".H_TOVAR_KATEGORIE."</a></li>";
				if(file_exists('modules/tables/table_manage.php'))
					print "<li><a href='modules/tables/table_manage.php' target='place'>Tabu�ky tovarov</a></li>";
				if(file_exists('modules/random_products/adm_random_products.php'))
					print "<li><a href='modules/random_products/adm_random_products.php' target='place'>N�hodn� zobrazovanie tovarov</a></li>";
				if(file_exists('modules/csv_import/adm_csv_import.php'))
					print "<li><a href='modules/csv_import/adm_csv_import.php' target='place'>Import d�t</a></li>";
                if(file_exists("modules/top_products/top_products.php"))
					print "<li><a href='modules/top_products/top_products.php' target='place'>".H_NAJPREDAVANEJSI_TOVAR."</a></li>";
			print "</ul>";
			print "</li>";
			
			print "<li><a>".H_OBJEDNAVKY."</a>";
			print "<ul>";
				print "<li><a href='order_management.php' target='place'>".H_OBJEDNAVKY."</a></li>";
					//print "<li><a target=''>Predajnost produktov</a></li>";
				if(file_exists('modules/order_archive/order_archive.php'))
					print "<li><a href='modules/order_archive/order_archive.php' target='place'>Arch�v objedn�vok</a></li>";
				if(file_exists('modules/invoice/invoice_options.php')){
					print "<li><a>------------------------</a></li>";
					print "<li><a href='modules/invoice/invoice.php' target='place'>".H_ZOZNAM_FAKTUR."</a></li>";
					print "<li><a href='modules/invoice/invoice_archive/invoice_archive.php' target='place'>".H_ARCHIV_FAKTUR."</a></li>";
					print "<li><a>------------------------</a></li>";
					print "<li><a href='modules/invoice/invoice_options.php' target='place'>".H_NASTAVENIE_FAKTUR."</a></li>";
                    print "<li><a href='modules/carry_pay_creator/categorie_creator.php' target='place'>".H_SPOSOBY_DOVOZU_A_PLATBY."</a></li>";
				}
			print "</ul>";
			print "</li>";
			
			print "<li><a>".H_DISKUSIE."</a>";
			print "<ul>";
				print "<li><a href='chat_management.php' target='place'>".H_SPRAVY."</a></li>";
				if(file_exists('modules/forum/adm_forum.php'))
					print "<li><a href='modules/forum/adm_forum.php' target='place'>F�rum</a></li>";
				
			print "</ul>";
			print "</li>";
			
			if(file_exists('modules/top_menu/categorie_creator.php')){
				print "<li><a>".H_HORNE_MENU."</a>";
				print "<ul>";
					if(file_exists('modules/top_menu/categorie_creator.php'))
						print "<li><a href='modules/top_menu/categorie_creator.php' target='place'>".H_KATEGORIE_UZIVATELSKEHO_MENU."</a></li>";
					if(file_exists('modules/top_menu/news_creator.php'))
						print "<li><a href='modules/top_menu/news_creator.php' target='place'>".H_KATEGORIE_NOVINIEK."</a></li>";
					if(file_exists('modules/top_menu/adm_informations_big_frame.php'))
						print "<li><a href='modules/top_menu/adm_informations_big_frame.php' target='place'>".H_TEXTY_MENU_A_NOVINIEK."</a></li>";
								
				print "</ul>";
				print "</li>";
			}
			
			print "<li><a>".H_UZIVATELA."</a>";
			print "<ul>";
				print "<li><a href='users_management.php' target='place'>".H_UZIVATELA."</a></li>";
				if(file_exists('modules/product_link/adm_main_frame.php'))
					print "<li><a href='modules/product_link/adm_main_frame.php?Reset_Cookie=YES' target='place'>".H_ZOZNAM_PRODUKTOV_NA_EMAIL."</a></li>";
                if(file_exists("modules/top_user/top_user.php"))
					print "<li><a href='modules/top_user/top_user.php' target='place'>".H_STATISTIKA_UZIVATELOV."</a></li>";
			print "</ul>";		
			print "</li>";
			
			print "<li><a>".H_ADMINISTRATORI."</a>";
			print "<ul>";
				if(file_exists('modules/informations/adm_informations.php'))
					print "<li><a href='modules/informations/adm_informations.php' target='place'>�vodn� inform�cie</a></li>";
				print "<li><a href='adm_acount_management.php' target='place'>".H_SPRAVA_KONT."</a></li>";
				print "<li><a href='adm_acount.php' target='place'>".H_UPRAVIT_KONTO."</a></li>";
                print "<li><a>------------------------</a></li>";
                print "<li><a href='adm_site_options.php' target='place'>".H_NASTAVENIE_ESHOPU."</a></li>";
				if(file_exists('modules/logs/logs.php'))
					print "<li><a href='modules/logs/logs.php' target='place'>Logovanie</a></li>";
			print "</ul>";
			print "</li>";
			
			if(file_exists('modules/imageviewer/MainAdminWnd.php'))
			{
                print "<li><a>".H_FOTOALBUMY."</a>";
				print "<ul>";
				print "<li><a href='modules/imageviewer/MainAdminWnd.php' target='place'>".H_FOTOALBUMY."</a></li>";
				print "</ul>";		
				print "</li>";
			}
			
			print "<li><a href='adm_logout.php' target='_top'>".H_ODHLASIT."</a>";
			//print "<ul>";
			//print "</ul>";
			print "</li>";
		
		print "</ul>";
	






/*

print"
   <img src=\"swing.jpeg\" align=\"top\" style=\"position:absolute;left:0px;top:0px;\" />

   <img src=\"navrh3.jpeg\" align=\"top\" style=\"position:absolute;left:150px;top:0px;\" />

   <form action=\"adm_product.php\" target=\"place\" method=\"post\">
       <input type=\"submit\" value=\"Tovar\" style=\"width :90px; position:absolute;left:90px;top:50px; background-color: ".BUTTON_ON_OUT.";\"
                onmouseover=\"this.style.backgroundColor='".BUTTON_ON_OVER."'; this.style.fontWeight='bold';\";
                onmouseout=\"this.style.backgroundColor='".BUTTON_ON_OUT."'; this.style.fontWeight='normal';\" />
   </form>
   
   
    <form action=\"adm_product_valuations.php\" target=\"place\" method=\"post\">
       <input type=\"submit\" value=\"Tovar Val\" style=\"width :90px; position:absolute;left:90px;top:70px; background-color: ".BUTTON_ON_OUT.";\"
                onmouseover=\"this.style.backgroundColor='".BUTTON_ON_OVER."'; this.style.fontWeight='bold';\";
                onmouseout=\"this.style.backgroundColor='".BUTTON_ON_OUT."'; this.style.fontWeight='normal';\" />
   </form>
   

   <form action=\"order_management.php\" target=\"place\" method=\"post\">
         <input type=\"submit\" value=\"Objedn�vky\" style=\"width :80px; position:absolute;left:190px;top:50px; background-color: ".BUTTON_ON_OUT.";\"
                onmouseover=\"this.style.backgroundColor='".BUTTON_ON_OVER."'; this.style.fontWeight='bold';\";
                onmouseout=\"this.style.backgroundColor='".BUTTON_ON_OUT."'; this.style.fontWeight='normal';\" />
   </form>

   <form action=\"chat_management.php\" target=\"place\" method=\"post\">
       <input type=\"submit\" value=\"F�rum\" style=\"width :70px; position:absolute;left:280px;top:50px; background-color: ".BUTTON_ON_OUT.";\"
                            onmouseover=\"this.style.backgroundColor='".BUTTON_ON_OVER."'; this.style.fontWeight='bold';\";
                            onmouseout=\"this.style.backgroundColor='".BUTTON_ON_OUT."'; this.style.fontWeight='normal';\" />
   </form>

   <form action=\"users_management.php\" target=\"place\" method=\"post\">
       <input type=\"submit\" value=\"U��vatelia\" style=\"width :70px; position:absolute;left:360px;top:50px; background-color: ".BUTTON_ON_OUT.";\"
                            onmouseover=\"this.style.backgroundColor='".BUTTON_ON_OVER."'; this.style.fontWeight='bold';\";
                            onmouseout=\"this.style.backgroundColor='".BUTTON_ON_OUT."'; this.style.fontWeight='normal';\" />
   </form>

   <form action=\"adm_acount_management.php\" target=\"place\" method=\"post\">
       <input type=\"submit\" value=\"Spr�va administr�torsk�ch kont\" style=\"width :220px; position:absolute;left:440px;top:50px; background-color: ".BUTTON_ON_OUT.";\"
                            onmouseover=\"this.style.backgroundColor='".BUTTON_ON_OVER."'; this.style.fontWeight='bold';\";
                            onmouseout=\"this.style.backgroundColor='".BUTTON_ON_OUT."'; this.style.fontWeight='normal';\" />
   </form>

   <form action=\"adm_acount.php\" target=\"place\" method=\"post\">
       <input type=\"submit\" value=\"Upravi� vlastn� konto\" style=\"width :150px; position:absolute;left:670px;top:50px; background-color: ".BUTTON_ON_OUT.";\"
                            onmouseover=\"this.style.backgroundColor='".BUTTON_ON_OVER."'; this.style.fontWeight='bold';\";
                            onmouseout=\"this.style.backgroundColor='".BUTTON_ON_OUT."'; this.style.fontWeight='normal';\" />
   </form>

   <form action=\"adm_logout.php\" target=\"_top\" method=\"post\">
       <input type=\"submit\" value=\"Odhl�si�\" style=\"width :70px; position:absolute;left:830px;top:50px; background-color: ".BUTTON_ON_OUT.";\"
                            onmouseover=\"this.style.backgroundColor='".BUTTON_ON_OVER."'; this.style.fontWeight='bold';\";
                            onmouseout=\"this.style.backgroundColor='".BUTTON_ON_OUT."'; this.style.fontWeight='normal';\" />
   </form>
   
    <form action=\"logs.php\" target=\"place\" method=\"post\">
       <input type=\"submit\" value=\"Logs\" style=\"width :70px; position:absolute;left:830px;top:70px; background-color: ".BUTTON_ON_OUT.";\"
                            onmouseover=\"this.style.backgroundColor='".BUTTON_ON_OVER."'; this.style.fontWeight='bold';\";
                            onmouseout=\"this.style.backgroundColor='".BUTTON_ON_OUT."'; this.style.fontWeight='normal';\" />
   </form>
   
	<form action=\"adm_forum.php\" target=\"place\" method=\"post\">
       <input type=\"submit\" value=\"F�rum2\" style=\"width :70px; position:absolute;left:280px;top:70px; background-color: ".BUTTON_ON_OUT.";\"
                            onmouseover=\"this.style.backgroundColor='".BUTTON_ON_OVER."'; this.style.fontWeight='bold';\";
                            onmouseout=\"this.style.backgroundColor='".BUTTON_ON_OUT."'; this.style.fontWeight='normal';\" />
   </form>";*/
?>
</body>
</html>
